/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package quanlynhatre.Model;

import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 *
 * @author VOTHUY
 */
public class LopHoc {
    
    private String MaLop;
    private String TenLop;
    private int SiSo;
    private Date NgayBD;
    
    private Set <TreEm> DSTreEm;
    private Set<NhanVien> DSNhanVien;
    private HocKy refhocky;
    private NamHoc refnamhoc;
// Khoi tao
    public LopHoc(){}
public LopHoc(String malop, String tenlop, int siso, Date ngaybt) {
        this.MaLop = malop;
        this.TenLop = tenlop;
        this.SiSo = siso;
        this.NgayBD = ngaybt;
        this.DSTreEm = new HashSet<TreEm>();
        this.DSNhanVien = new HashSet<NhanVien>();
        this.refhocky = new HocKy();
    }

// Ham get, set
    public String getMaLop() {
        return MaLop;
    }
public void setMaLop(String malop) {
        this.MaLop = malop;
    }
public String getTenLop() {
        return TenLop;
    }
public void setTenLop(String tenlop) {
        this.TenLop = tenlop;
    }
public int getSiSo() {
        return SiSo;
    }
public void setSiSo(int siso) {
        this.SiSo = siso;
    }
public Date getNgayBD() {
        return NgayBD;
    }
public void setNgayBD(Date ngaybd) {
        this.NgayBD = ngaybd;
    }

public Set<TreEm> getDSTreEm() {
        return DSTreEm;
    }

public void setDSTreEm(Set<TreEm> dshoc) {
        this.DSTreEm = dshoc;
    }

public Set<NhanVien> getDSNhanVien() {
        return DSNhanVien;
    }

public void setDSNhanVien(Set<NhanVien> dsnhanvien) {
        this.DSNhanVien = dsnhanvien;
    }

public HocKy getrefHK() {
        return refhocky;
    }

public void setrefHK(HocKy dshocky) {
        this.refhocky = dshocky;
    }

public NamHoc getrefNH() {
        return refnamhoc;
    }

public void setrefNH(NamHoc dshocky) {
        this.refnamhoc = dshocky;
    }
    
}
